package com.ky.tms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ky.tms.entity.TmsCustomer;
import com.ky.tms.entity.TmsUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ky.tms.exception.PredictableException;
import com.ky.tms.vo.TmsLogin;

import javax.naming.PartialResultException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chengkaimao
 * @since 2020-03-21
 */
public interface ITmsUserService extends IService<TmsUser> {


    Map<String, Object> login(TmsLogin tmsLogin) throws Exception;
    Map<String, Object> menuList() throws Exception;
    IPage<TmsUser> page(String userName, TmsUser tmsUser, Long limit, Long pages);
    void add (String userName, TmsUser tmsUser) throws PredictableException;
    void delete (String userName, List<Long> ids);
    void update (String userName, TmsUser tmsUser) throws PredictableException;
    void updatePassword (TmsUser tmsUser) throws Exception;
    void resetPassword(TmsUser tmsUser) throws PredictableException;
    List<Map<String, Object>> selectList();

}
